package com.excalibur.core.mvc;

import org.springframework.web.bind.WebDataBinder;
import org.springframework.web.bind.annotation.InitBinder;

import com.excalibur.core.mvc.editor.StringHtmlEscapeEditor;

public abstract class BaseController implements IController {

	protected final static String REDIRECT = "redirect:";
	protected final static String FORWARD = "forward:";
	
	@InitBinder
	public void initBinder(WebDataBinder binder) {
		// html escape
		binder.registerCustomEditor(String.class, new StringHtmlEscapeEditor());

	}

}
